<div class="container">
  <section>
    <h2 class="clearfix">
      文件共享
      <div class="pull-right">
        <button ng-file-select ng-model="myFile" ng-file-change="upload(myFile)"  multiple="false" class="btn btn-primary">上传资料</button> <span  class="label label-info" ng-bind="progressStatus"></span><span ng-show="progress" class="label label-default" ng-bind="nowProgress"></span>
      </div>
    </h2>
    <div class="table-responsive">
      <table class="table table-striped">
        <thead>
        <tr>
          <th>编号</th>
          <th>文件名</th>
          <th>文件大小</th>
          <th>上传者</th>
          <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="file in shares">
          <td>{{($index+1)}}</td>
          <td>{{file.file_name}}</td>
          <td>{{file.file_size}}</td>
          <td>{{file._user.name}}</td>
          <td><a href="{{file.file_path}}" target="_blank">下载</a> <a href="" ng-click="removeFile(file._id, $index)" ng-if="file._user._id == currentUser._id">删除</a> </td>
        </tr>
        </tbody>
      </table>

      <p class="lead text-center" style="margin: 80px auto" ng-if="!shares.length"><i class="fa fa-exclamation-triangle"></i> 没有找到任何上传的共享资料！</p>
    </div>

  </section>
</div>
